<script>

async function fn1(){
    console.log(1)
    await fn2()
    console.log(3)
    return 4
}
async function fn2(){
    console.log(2)
}

let p = fn1()
p.then(value => {
    console.log(value)
})

setTimeout(()=>{
    console.log(6);
},0)

console.log(5)

//1,2,5,3,4,6
</script>